<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/blindBox',
    'namespace' => 'Beerus\\Modules\\BlindBox\\Controllers',
    'middleware' => [
        'web',
        'admin',
    ],
], function (Router $router) {
    //活动审核
    $router->get('/index', 'IndexController@index');
    $router->get('/index/{id}/editCoupon', 'IndexController@editCoupon');
    $router->get('/index/{id}/editCoupon', 'IndexController@editCoupon');
    $router->post('/index/changeCoupon', 'IndexController@changeCoupon');
    $router->get('/index/{id}/editTime', 'IndexController@editTime');
    $router->post('/index/changeTime', 'IndexController@changeTime');
    $router->get('/index/{id}/editImg', 'IndexController@editImg');
    $router->post('/index/changeImg', 'IndexController@changeImg');
    $router->get('/index/{id}/editDynamic', 'IndexController@editDynamic');
    $router->post('/index/changeDynamic', 'IndexController@changeDynamic');
    $router->post('/index/audit', 'IndexController@audit');
    $router->get('/index/{id}/unPass', 'IndexController@unPass');
    $router->post('/index/unPassPost', 'IndexController@unPassPost');
    $router->get('/index/{id}/activityData','IndexController@activityData');
    $router->post('/index/activityDataPost','IndexController@activityDataPost');

    //好好住补位奖品
    $router->get('/reserve', 'ReservePrizeController@index');
    $router->get('/reserve/create', 'ReservePrizeController@edit');
    $router->get('/reserve/{id}/edit', 'ReservePrizeController@edit');
    $router->post('/reserve/save', 'ReservePrizeController@save');
    $router->delete('/reserve/{id}', 'ReservePrizeController@del');

    $router->get('winnerList','WinnerController@index');//中奖名单
});
